<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>动画</title>
</head>

<body>
    <button class="btn1">imag1</button>
    <button class="btn2">imag2</button>
    <button class="btn3">imag3</button>
    <button class="btn4">imag4</button> <br>
    <img class="img" src="./Images/p001.jpg" alt="">
    <img class="img1" src="./Images/p002.jpg" alt="">
    <img class="img3" src="./Images/p003.jpg" alt="">
    <img class="img4" src="./Images/p004.jpg" alt="">
</body>
<!-- <script>
    btn1.addEventListener('click', function (e) {
        console.log(this.innerHTML);
        console.log(e.target.innerHTML);
    });
</script> -->
<style>
    button {
        width: 200px;
        height: 40px;
        background-color: rgba(238, 120, 16, 0.775);
    }

    /* 第四 */
    .img4 {
        position: absolute;
        left: 200px;

        transform: scale(0.1);

        animation: zhuan 2s ease-out forwards;
    }

    @keyframes zhuan {
        0% {
            transform: scale(0) rotate(0);
        }

        100% {
            transform: scale(1) rotate(360deg);
        }
    }


    /* 第三张 */
    .img3 {
        position: absolute;
        left: 200px;

        transform: scale(0.1);

        animation: big 2s ease-out forwards;
    }

    @keyframes big {
        0% {
            transform: scale(0);
        }

        100% {
            transform: scale(1.2);
        }
    }

    /* 第二张图 */
    .img1 {
        position: absolute;
        top: 400px;
        left: 200px;

        animation: top 2s ease-out forwards;
    }

    @keyframes top {
        0% {
            transform: translateY(0px);
        }

        100% {
            transform: translateY(-350px);
        }
    }




    /*第一张图 */
    .img {
        animation: tran 1s linear forwards;

        position: absolute;
        left: -300px;
    }

    @keyframes tran {
        0% {
            transform: translateX(0px);
        }

        100% {
            transform: translateX(800px);
        }
    }
</style>

</html>